// Copyright 2010 Alexandre Tristan St-Cyr <tristan.stcyr@gmail.com>

package com.codeplex.loadjava.model;

public class InterfaceImplementation {
	private JavaClass implementationClass;
	
	private JavaClass interfaceClass;
	
	public InterfaceImplementation(
			JavaClass implementationClass, 
			JavaClass interfaceClass) {
		this.implementationClass = implementationClass;
		this.interfaceClass = interfaceClass;
	}
	
	public JavaClass getImplementationClass()
	{
		return this.implementationClass;
	}
	
	public JavaClass getInterfaceClass()
	{
		return this.interfaceClass;
	}
	
	@Override
	public boolean equals(Object o) {
		if (!this.getClass().isInstance(o))
			return false;
		InterfaceImplementation other = (InterfaceImplementation)o;
		return this.implementationClass.equals(other.implementationClass)
			&& this.interfaceClass.equals(other.interfaceClass);
	}
}
